<?php


/**
 
 * Default home page view
 
 *  

 * @author
 * @version
 
 */
 


$this->placeholder('title')->set('');
//$this->placeholder('content_title')->set('Home');

?>

<div id="index_index">

    <br class="clear" />

        <?php
        if (isset($this->posts) and is_array($this->posts) and !empty($this->posts)) {

            foreach ($this->posts as $post) {
        ?>
                <div class="post">

                    <h3><?php echo $this->E($post['post_title']); ?></h3>

                    <ul class="post_info">

                        <li class="date">
                            <?php 
                            $author = '<a href="#">' . $this->E($post['user_name']) . '</a>';
                            $date = $this->D($post['post_date_create'], true);
                            printf($this->T('Posted by %s on %s'), $author, $date);
                            ?>
                        </li>

                        <li class="comments">
                            <a href="#">
                                <?php 
                                printf($this->T('%d comments'), count($post['user_name']));
                                ?>
                            </a>
                        </li>

                    </ul>

                    <div class="post_content">
                        <?php echo ($post['post_content']); ?>
                    </div>

                </div>

                <br />

        <?php
            }
        }
        ?>

</div>